/*
 * FormAppender.java
 *
 * Created on 4 aprile 2007, 23.18
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.bloomingstars.bluepad.util;

import javax.microedition.lcdui.Form;

/**
 *
 * @author vega
 */
public class FormAppender implements BlueAppender
{    
    public FormAppender()
    {
        
    }
    
    public FormAppender(Form f)
    {
        form = f;
    }
    
    public void append(String s)
    {
        if (form != null)
        {
            form.append(s);
        }        
    }
    
    public void setForm(Form f)
    {
        form = f;
    }
    
    private Form form;
}
